#ifndef CURSOR_H_
#define CURSOR_H_
#include "Cube.h"
#include "CubePile.h"
#include "KeyListener.h"
#include "Constants.h"
#include "MouseListener.h"
#include "CubePileGrid.h"

class Cursor : public KeyListener, public MouseListener
{
	float xPos, yPos, zPos;
	int mouseX, mouseY;
	int xInd, zInd;
	CubePile * currentPile;
	void calculatePosition();
	void checkBounds();
	CubePileGrid * cubePiles;
	
public:
	Cursor(CubePileGrid * aCubePiles);
	
	virtual ~Cursor();
	void render();
	void virtual handleEvent(bool keys[321]);
	void handleEvent(SDL_Event * event);
	
	CubePile * getCurrentPile();
};

#endif /*CURSOR_H_*/
